#方法
def avgerageOfList(num):
    sumOfNumber = 0
    for i in num:
        sumOfNumber += i
    return sumOfNumber / len(num)
#EZ

def addNum(first,second,third,fourth):


    return first + second + third + fourth
#参数前加上* 表示任意数量

def addTotal(*num):
    total = 0
    for i in num:
        total += total
    return total

if __name__ == '__main__':
    list_a = [1,2,3,4,5,6]

    a = avgerageOfList(list_a)
    print(a)

    #传递参数，必须按照顺序传递
    #使用关键字传递
    addNum(1,2,3,4)
    addNum(first=2,third=4,second=9,fourth=1)